<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <%=require('../../view/common/header.htm') %>
    <div id="Content">
        <div id="Catalog">
          <form method="post" action="/account/updateAccount">
            <h3>Account Information</h3>
            <table>
              <tr>
                <td>First name:</td>
                <td><input type="text" id="firstName"/></td>
              </tr>
              <tr>
                <td>Last name:</td>
                <td><input type="text" id="lastName" /></td>
              </tr>
              <tr>
                <td>Email:</td>
                <td><input type="text" size="40" id="email" /></td>
              </tr>
              <tr>
                <td>Phone:</td>
                <td><input type="text" id="phone" /></td>
              </tr>
              <tr>
                <td>Address 1:</td>
                <td><input type="text" size="40" id="address1" /></td>
              </tr>
              <tr>
                <td>Address 2:</td>
                <td><input type="text" size="40" id="address2" /></td>
              </tr>
              <tr>
                <td>City:</td>
                <td><input type="text" id="city" /></td>
              </tr>
              <tr>
                <td>State:</td>
                <td><input type="text" size="4" id="state" /></td>
              </tr>
              <tr>
                <td>Zip:</td>
                <td><input type="text" size="10" id="zip" /></td>
              </tr>
              <tr>
                <td>Country:</td>
                <td><input type="text" size="15" id="country" /></td>
              </tr>
            </table>
            <div id="errMsg" style="color: red;font-weight: bold;"></div>
  
  
            <h3>Profile Information</h3>
  
            <table>
              <tr>
                <td>Language Preference:</td>
                <td>
                  <select id="languagePreference" th:value="${session.account.languagePreference}">
                    <option value="English">English</option>
                    <option value="Chinese">Chinese</option>
                    <option value="Japanese">Japanese</option>
                  </select>
                </td>
              </tr>
              <tr>
                <td>Favourite Category:</td>
                <td>
                  <select id="favouriteCategoryId" th:value="${session.account.favouriteCategoryId}">
                    <option value="BIRDS">Birds</option>
                    <option value="FISH">Fish</option>
                    <option value="DOGS">Dogs</option>
                    <option value="CATS">Cats</option>
                    <option value="REPTILES">Reptiles</option>
                  </select>
                </td>
              </tr>
  
              <tr>
                <td>Enable MyList</td>
                <td><input type="checkbox" id="listOption" /></td>
              </tr>
              <tr>
                <td>Enable MyBanner</td>
                <td><input type="checkbox" id="bannerOption"/></td>
              </tr>
            </table>
            <input type="button" id="newAccount" value="Update Account Information" />
          </form>
        </div>
      </div>

      <%=require('../../view/common/footer.htm') %>
    
</body>
</html>